﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using System.Data;
using System.Data.SqlClient;


namespace DAL
{
    public class DanhSachLop_DAL
    {
        private DataProvider _provider = new DataProvider();
	
		    public DanhSachLop_DAL()
		    {
			    _provider.connect();
		    }
       public void ThemDanhSachLop(DanhSachLop_DTO dsl)
            {
                string insertCommand = @"INSERT INTO DANHSACHLOP (Malop, MaHS) VALUES('" +
                       dsl.Malop + "'," +
                       dsl.MaHS + ")";

                _provider.executeNonQuery(insertCommand);
            }

    }
}
